普通函数
function checkAge(min, age) {
    return age >= min
}

// console.log(checkAge(18, 25))

柯里化
function checkAge(min) {
    return function (age) {
        return age >= min
    }
}

const checkAge = min => age => age >= min

const checkAge18 = checkAge(18)

console.log(checkAge18(25))